  const {  	myRequest  } = require('@/utils/request.js')
  module.exports = {
	  // 搜索联系人
	  querySearch: (params) => myRequest({
	  	url: "usrCraftsman/querySearch",
	  	methods: 'POST',
	  	data: params,
	  	auth:true
	  }),
	  
	  // 企业人脉
	  queryFriendsApply: (params) => myRequest({
	  	url: "adbFriends/queryFriendsApply",
	  	methods: 'POST',
	  	data: params,
	  	auth:true
	  }),
	  
	 /*拓展企脉 */ 
	 // 行业类别（企业）
	 querySysContacts: (params) => myRequest({
	 	url: "sysContacts/querySysContacts",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 
	 // 推荐好友（企业）
	 queryRandomFriendComp: (params) => myRequest({
	 	url: "usrCompany/queryRandomFriend",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 // 推荐好友（个人）
	 queryRandomFriend: (params) => myRequest({
	 	url: "usrCraftsman/queryRandomFriend",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 
	 // 好友（个人）
	 queryMsgForListNew: (params) => myRequest({
	 	url: "usrCraftsman/queryMsgForListNew",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 
	 // 企业搜索人脉
	 querySearchList: (params) => myRequest({
	 	url: "usrCompany/querySearchListNew",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 
	 // 搜索企业（全部）
	 querySearchComp: (params) => myRequest({
	 	url: "usrCompany/querySearch",
	 	methods: 'POST',
	 	data: params,
	 	auth:true
	 }),
	 
	 // 搜索所有行业（企业）
	queryChainTypeApp: (params) => myRequest({
		url: "industryTypeFive/queryChainTypeApp",
		methods: 'POST',
		data: params,
		auth:true
	}),
	
	// 搜索我的企业好友
	queryFriends: (params) => myRequest({
		url: "adbFriends/queryFriends",
		methods: 'POST',
		data: params,
		auth:true
	}),
	
	// 删除自己发送的消息
	deleteMySendMsg:(params) => myRequest({
		url: "usrChatObjectItem/deleteSelf",
		methods: 'POST',
		data: params,
		auth:true
	}),
	
	// 添加好友
	addFriends: (params) => myRequest({
		url: "adbFriends/addFriends",
		methods: 'POST',
		data: params,
		auth:true
	}),
	// 黑名单列表
	usrBlackListQuery : (params) => myRequest({
		url: "usrBlackList/query",
		methods: 'POST',
		data: params,
		auth:true
	}),
	// 加入黑名单
	usrBlackListInsert : (params) => myRequest({
		url: "usrBlackList/insert",
		methods: 'POST',
		data: params,
		auth:true
	}),
	// 移出来黑名单
	usrBlackListRemove : (params) => myRequest({
		url: "usrBlackList/update",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//拒绝好友申请
	refuseApply : (params) => myRequest({
		url: "adbFriends/refuseApply",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//同意好友申请
	accessApply : (params) => myRequest({
		url: "adbFriends/accessApply",
		methods: 'POST',
		data: params,
		auth:true
	}),
	
	// 判断当前好友状态
	queryBlackList : (params) => myRequest({
		url: "usrBlackList/queryBlackList",
		methods: 'POST',
		data: params,
		auth:true
	}),
	// 判断当前好友是否在申请中
	queryApplyFriend : (params) => myRequest({
		url: "adbFriends/queryApplyFriend",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//删除好友
	deleteFriend : (params) => myRequest({
		url: "adbFriends/deleteFriend",
		methods: 'POST',
		data: params,
		auth:true
	}),
	getPeoPhone : (params) => myRequest({
		url: "usrCraftsman/selectTelephone",
		methods: 'POST',
		data: params,
		auth:true
	}),
	
	// 极速联系
	useUsrVipAccredit: (params) => myRequest({
		url: "https://job.ydylmold.cn/api/job/updQuickContact",
		methods: 'POST',
		data: params,
		interception: true,
		auth:true
	}),
	//加好友次数状态
	updAddFriends: (params) => myRequest({
		url: "https://job.ydylmold.cn/api/job/updQuickContact",
		// url: "http://192.168.3.59:8081/api/job/updAddFriends",
		methods: 'POST',
		data: params,
		interception: true,
		auth:true
	}),
	//活动规则
	selectSysAgreement: (params) => myRequest({
		url: "sysAgreement/selectSysAgreement",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//发送留言
	usrCompanyMessageInsert: (params) => myRequest({
		url: "usrCompanyMessage/insert",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//查看留言
	usrCompanyMessageQueryList: (params) => myRequest({
		url: "usrCompanyMessage/queryList",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//删除留言
	usrCompanyMessageDelete : (params) => myRequest({
		url: "usrCompanyMessage/delete",
		methods: 'POST',
		data: params,
		auth:true
	}),
	//未读消息数量
	getUnReadListByEntity : (params) => myRequest({
		url: "usrChatObjectItem/getUnReadListByEntity",
		methods: 'POST',
		data: params,
		auth:true
	}),
  }
